package com.guoxin.prototype;

import lombok.Data;

/**
 * 浅拷贝
 * 
 * @author guoxin
 * @date 2019年8月16日
 */
@Data
public class Sheep implements Cloneable {

	private String name;
	private int age;
	private String color;
	private Sheep friend;

	/**
	 * 此处对象只实现了浅拷贝
	 */
	@Override
	protected Object clone() throws CloneNotSupportedException {
		return super.clone();
	}

}
